package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.PageBean;
import com.example.pojo.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
public interface UserService extends IService<User> {
    List<User> selectUserWithRoles(Integer uid);

    boolean addUser(User user,Integer[] rolesId);

    boolean deleteByUid(Integer uid);

    boolean updateUserAndRole(User user, Integer[] rolesId);

    User login(String loginName, String password);

    PageBean<User> getPage(Integer uid, Integer currentPage, Integer pageSize);
}
